/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.constants;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Jannes Plyson
 */
public class ModelConstants {

    public final static int VERSION = 1;
    public final static String EXTENSION = "ls";

    public final static String LABEL_BUNDLE = "LabelBundle";
    public final static String DESCRIPTION_BUNDLE = "DescriptionBundle";
    public final static String MESSAGE_BUNDLE = "MessageBundle";
    public final static String ERROR_BUNDLE = "ErrorBundle";

    public final static int A_BASE_RANK = 5;
    public final static int B_BASE_RANK = 6;
    public final static int C_BASE_RANK = 7;
    public final static int D_BASE_RANK = 1;
    public final static int E_BASE_RANK = 2;
    public final static int F_BASE_RANK = 3;
    public final static int G_BASE_RANK = 4;

    public final static Map<Integer, Integer> denominatorToMusicalTime = new HashMap<Integer, Integer>() {{
           put(1, 192);
           put(2, 96);
           put(3, 64);
           put(4, 48);
           put(6, 32);
           put(8, 24);
           put(12, 16);
           put(16, 12);
           put(24, 8);
           put(32, 6);
           put(48, 4);
           put(64, 3);
           put(96, 2);
           put(192, 1);
    }};

    public static int WHOLE_NOTE_TICKS = 192;
    public static long PERFORMANCE_TO_SECOND = 1000000000;

}
